﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Core"
                   namespace="Core.Model">
  <class name="TerminalOperador" table="TERMINAL_OPERADOR">
    <id name="Id" column="ID">
      <generator class="native">
        <param name="sequence">GEN_ID_TERMINAL_OPERADOR</param>
      </generator>
    </id>
    <property name="DataCadastro" column="DATA_CADASTRO" not-null="true" />
    <many-to-one name="TerminalEntity" column="TERMINAL_ID" cascade="save-update" not-null="true" />
    <many-to-one name="UsuarioEntity" column="USUARIO_ID" cascade="save-update" not-null="true" />
    <property name="Ativo" column="ATIVO" not-null="true" />
  </class>
</hibernate-mapping>